#include "pm_plugin.hpp"
#include "pm_engine_impl.hpp"

/*---------------------------------------------------------------------------*/

namespace ProjectManager {

/*---------------------------------------------------------------------------*/

Plugin* Plugin::ms_instance = 0;

/*---------------------------------------------------------------------------*/


Plugin::Plugin()
	:	m_engine( new EngineImpl )
{
}


/*---------------------------------------------------------------------------*/


Plugin::~Plugin()
{
}

/*---------------------------------------------------------------------------*/


void
Plugin::initialize()
{

}


/*---------------------------------------------------------------------------*/


Engine&
Plugin::getEngine()
{
	return *m_engine;
}


/*---------------------------------------------------------------------------*/


Plugin&
Plugin::getInstance()
{
	if ( !ms_instance )
		ms_instance = new Plugin;

	return *ms_instance;
}


/*---------------------------------------------------------------------------*/

} // namespace ProjectManager
